<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <css file="__PUBLIC__/css/index.css"/>
	<script>
		var CONTROL = "__CONTROL__";
	</script>
	<jquery />
	<js file='__PUBLIC__/setup.js'/ >
</head>
<body>
    <div class="setup3">
        <div class="title">
            HDCMS install
        </div>
        <div class="body">
            <h2>环境检测</h2>
            <form action="__CONTROL__/installdb" method="post">
                <table>
                    <tr>
                        <td align='right'>数据库连接主机</td>
                        <td width='120'><input type="text" name="db[DB_HOST]" value="{$setup.db.dbhost}" id='dbhost'/></td>
                        <td>数据库服务器地址一般为localhost</td>
                    </tr>
                    <tr>
                        <td align='right'>数据库用户名</td>
                        <td><input type="text" name="db[DB_USER]" value="{$setup.db.dbuser}" id='dbuser'/></td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td align='right'>数据库密码</td>
                        <td><input type="password" name="db[DB_PASSWORD]" id='dbpwd'/></td>
                        <td id='showerror'>&nbsp;<span style='color:red;display:none;'>数据库链接失败，请检查配置</span></td>
                    </tr>
                    <tr>
                        <td align='right'>数据库名称</td>
                        <td><input type="text" name="db[DB_DATABASE]" value="{$setup.db.dbname}"/></td>
                        <td>系统将判断并创建数据库</td>
                    </tr>
                    <tr>
                        <td align='right'>端口</td>
                        <td><input type="text" name="db[DB_PORT]" value="{$setup.db.dbport}"/></td>
                        <td>一般数据库连接端口为3306</td>
                    </tr>
                    <tr>
                        <td align='right'>数据表前缀</td>
                        <td><input type="text" name="db[DB_PREFIX]" value="{$setup.db.dbfix}"/></td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td align='right'>数据库驱动</td>
                        <td>
                            <input type="radio" name="db[DB_DRIVER]" style="width:20px;" checked="checked"value="mysqli"/>
                            <strong>mysqli</strong></td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
                <!--目录检测-->
                <h2>管理员信息</h2>
                <table style="width:90%">
                    <tr>
                        <td align='right'>管理员名称</td>
                        <td width='120'>
                            <input type="text" name="admin[name]" value="admin" id='admin'/>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td align='right'>管理员密码</td>
                        <td>
                            <input type="password" name="admin[password]" id='adminpwd'/>
                        </td>
                        <td><span>密码不要与管理员名称相同</span></td>
                    </tr>
                    <tr>
                        <td align='right'>重复密码</td>
                        <td>
                            <input type="password" name="admin[password2]" id='adminpwd2'/>
                        </td>
                        <td><span style=' display:none; color:red'>两次输入的密码不相同</span></td>
                    </tr>
                    <tr>
                        <td align='right'>管理员邮箱</td>
                        <td>
                            <input type="text" name="admin[email]" value="admin@admin.com"/>
                        </td>
                        <td>&nbsp;<span id='checkemail' style='color:red;display:none;'>邮箱格式不正确</span></td>
                    </tr>
                </table>


        </div>
        <div class="setup3_submit">
            <form action="__CONTROL__/installdb" method="get">
                <input type='submit' value='上一步' onclick="this.form.action='__ROOT__/install/index.php/index/check';this.form.submit();"/>
				<input type='submit' value='下一步' id='sub' kaiqi='0'/>
            </form>
        </div>
    </form>
    <div class="step">
    </div>
</div>
</body>
</html>
